package com.epalmpay.job;

import com.epalmpay.exception.ApplicationException;
import com.epalmpay.service.weixin.IWxApiWalletService;
import com.epalmpay.util.Logger;

import javax.annotation.Resource;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
public class OrderQueryNotifyTaskJob {
     
	
	
	protected Logger logger = Logger.getLogger(this.getClass());	
	
	
	@Resource
	private IWxApiWalletService wxApiWalletServiceService;
	
	/**
	 * 凌晨1点执行 待支付回调
	 * 
	 */
	@Scheduled(cron="0 0 1 * * *")
	public void  run(){
          
		 
		 try {
			 wxApiWalletServiceService.updateOrderQueryNotify();
			
		} catch (ApplicationException e) {
			e.printStackTrace();
		}
		
		}
	}

